package com.es.bean;

import org.springframework.context.annotation.Lazy;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component
@Lazy
@Scope("prototype")
public class Student {

    public Student(int i ){}

    public Student(){
        System.out.println("我是Student类的构造方法");
    }


    public void init(){
        System.out.println("我是Student类的初始化方法");
    }


    public void destroy(){
        System.out.println("我是Student类的销毁方法");
    }

}
